package com.lkd.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.lkd.entity.BusinessType;
import com.lkd.entity.Node;
import com.lkd.entity.Region;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Data
public class NodeVo{

    /**
     * 点位id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 点位名称
     */
    private String name;
    /**
     * 点位详细地址
     */
    private String addr;
    /**
     * 所在区域id
     */
    private String areaCode;
    /**
     * 创建人id
     */
    private Integer createUserId;
    /**
     * 区域id
     */
    private Long regionId;
    /**
     * 商圈id
     */
    private Integer businessId;
    /**
     * 点位主Id
     */
    private Integer ownerId;
    /**
     * 点位主名称
     */
    private String ownerName;
    /**
     * 更改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;


    @TableField(exist = false)
    private Long vmCount;

    private Region region;

    private BusinessType businessType;


}
